FROM xxfaxy/self-alpine-nginx-php-fpm-simple
ADD common/php.ini /etc/php7/php.ini
ADD common/50-setting.ini /etc/php7/conf.d/50-setting.ini
ADD common/ext/php7.2.10-swoole4.2.5.so /usr/lib/php7/modules/swoole.so
ADD common/ext/libhiredis.so.0.13 /usr/lib/libhiredis.so.0.13
VOLUME "/app"
WORKDIR "/app"
ADD code /app
RUN chmod 777 /app -R
EXPOSE 80
ADD run.sh /run.sh
RUN chmod +x /run.sh
CMD ["/run.sh"]
